home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2005 Utilities / CHIP Utilities 2005 / CHIP Utilities 2005.iso / dosapps / savepart / doc / en / howto.txt < prev    next >
Encoding:
Text File  |  2004-11-05  |  13.7 KB  |  272 lines

  1.  
  2.                   +----------------------------------------+
  3.                   |                                        |
  4.                   |            Partition saving            |
  5.                   |                                        |
  6.                   |    http://www.partition-saving.com     |
  7.                   |  Copyright (c) 1999-2004 D. Guibouret  |
  8.                   +----------------------------------------+
  9.  
  10.                                      HOWTO
  11.  
  12. Table of contents 
  13. -----------------
  14.  
  15.   1- Preamble 
  16.   2- Some definitions 
  17.   3- Some DOS commands 
  18.      a) Change drive 
  19.      b) List directory contents 
  20.      c) Change directory 
  21.      d) Execute a program 
  22.   4- Preparation 
  23.   5- Saving 
  24.   6- Restoring 
  25.  
  26.  
  27. 1- Preamble 
  28. -----------
  29.  
  30. This is not the Partition Saving manual. This is a short description of how to
  31. use this program in a standard case. To have more details, please read manual 
  32. and FAQ. 
  33.  
  34.  
  35. 2- Some definitions 
  36. -------------------
  37.  
  38. A drive is a partition on a hard disk, a floppy drive or any other device that
  39. allows storing data. With DOS it is identified with a letter between 'A' and 
  40. 'Z' followed with ':'. 
  41.  
  42. A directory (or folder) is an element of a drive that allows grouping files 
  43. (or sub-folders) together. Directory organisation on a drive is called a tree.
  44. A directory inside another directory is called a sub-folder, a directory that 
  45. contains a sub-folder is called parent directory (or upper directory) of 
  46. sub-folder. The upper directory into tree (those that corresponds to drive) is
  47. called root. 
  48.  
  49.  
  50. 3- Some DOS commands 
  51. --------------------
  52.  
  53. DOS is an OS that run with command line. Here are some commands that could be 
  54. useful. All commands given here must be validated with Enter key to be 
  55. executed. 
  56.  
  57.   a) Change drive
  58.  
  59. To change drive, you have to enter "<drive letter>:". 
  60.  
  61. Example: 
  62. --------
  63. To go on floppy drive, you have to enter "A:". 
  64.  
  65.   b) List directory contents
  66.  
  67. To list what a directory contains, you have to enter "dir". If you enter "dir 
  68. <directory name>" you will get contents of <directory name>. If you do not 
  69. give directory name, you will get contents of current directory. If there was 
  70. more files into a directory than it could be displayed on screen, you could 
  71. enter "dir <directory name> /p" to stop command between each screen. 
  72.  
  73. Example: 
  74. --------
  75. "dir savepart". 
  76.  
  77.   c) Change directory
  78.  
  79. To change directory, you have to enter "cd <directory name>". If you do not 
  80. give <directory name>, current directory name will be displayed. If <directory
  81. name> is equal to ".", nothing is done, if it is equal to "..", you go into 
  82. upper directory, if it is equal to "\" you go into root directory. You could 
  83. cross over several directories by separating them with "\". 
  84.  
  85. Example: 
  86. --------
  87. If you have following directory tree: 
  88. C: 
  89. |- savepart 
  90. |  |- doc 
  91. |     |- en 
  92. |     |- fr_ansi 
  93. |     |- fr_ascii 
  94. and you are into C:. If you enter "cd savepart", you go into savepart 
  95. directory (enter "cd" to check this). Then if you enter "cd doc", you go into 
  96. savepart\doc. A faster way to be into this directory from C: is to enter "cd 
  97. savepart\doc". Once you are into savepart\doc, you could enter "cd .." to go 
  98. back into savepart, "cd \" to go into root directory (C:). 
  99.  
  100.   d) Execute a program
  101.  
  102. To execute a program, you have to enter its name. DOS begin to search a file 
  103. "<program name>.bat", "<program name>.com" or "<program name>.exe" into 
  104. current directory, then into all directories given into "PATH" variable (to 
  105. know what contains this variable, enter "path"). You could also give directory
  106. name with program name for the DOS to search it directly into this directory. 
  107.  
  108. Example: 
  109. --------
  110. With considering that you have savepart.exe into savepart directory from 
  111. previous example directory tree and that you are into C:\, you could enter 
  112. "savepart\savepart" to run program, or enter "cd savepart" then "savepart". 
  113.  
  114.  
  115. 4- Preparation 
  116. --------------
  117.  
  118. Here are elements to be done before saving/restoring a partition: 
  119.  
  120.   - To be able to save/restore a partition, you need a boot disk. To know how 
  121. to create one, you could read FAQ Q10. You have to check that fdisk.exe, 
  122. sys.com and format.com are on it, they could be useful.
  123.   - To avoid saving useless things, it is better to remove temporary and 
  124. useless files, .... Swap file could also be moved onto another partition to 
  125. avoid saving it.
  126.   - It could be better to defragment partition before saving it to group all 
  127. data at beginning, moreover if you will restore it onto a smaller partition.
  128.   - If you thing to clone a NTFS partition on another computer, you have to 
  129. prepare Windows to this. For this purpose, please read Microsoft site. This is
  130. not needed when saving/restoring a partition that was not moved on disk. 
  131. Beginning with 2.90 version of Partition Saving, this is also theoretically 
  132. not needed with using options to update registry and BOOTSECT.DOS file.
  133.   - You need a FAT partition or a device that could be written by DOS to 
  134. create saving files. Writing CD directly from DOS is rarely available. In this
  135. case you need to create saved file on hard disk then go back to your usual OS 
  136. to burn CD. For USB devices, it seems that some generic drivers exist to 
  137. access them from DOS. If you have several types of partition (like NTFS and 
  138. FAT) into a logical partition, you have to put FAT partitions before the 
  139. others (else DOS seems not to be able to find them).
  140.   - To be able to find easily which partition to choose, it is better to give 
  141. a name to each partition. This will avoid confusion in case matching between 
  142. partition and corresponding letter is wrong.
  143.   - The part that is better to save is system partition (the one where OS is).
  144. If system is installed on a partition and programs on another, as they could 
  145. be links between them (example: register base and DLL for Windows), you have 
  146. to save both partitions with running program twice. 
  147.     As a good way of doing, it is better to create at least 2 partitions: one 
  148. with OS and programs, second with your data (that do not need restoring in 
  149. case of problem with OS). If it is not the case, before restoring, you will 
  150. have to save your data somewhere to avoid them being erased with an older 
  151. version.
  152.  
  153.  
  154. 5- Saving 
  155. ---------
  156.  
  157. Here are steps to save a partition: 
  158.  
  159.   - You have to begin with choosing "Save an element" info first window.
  160.   - Then you have to choose support. As a general rule, system partition is on
  161. disk number 0, so it is this one that you have to choose. "DOS devices" choice
  162. should be used only if element to save is not on a hard disk or a floppy disk.
  163.   - Third window allows choosing what exactly will be saved. It will not 
  164. appear if you choose a floppy disk on previous window. So you have to choose 
  165. into list what you want: generally it is only system partition. Full save of 
  166. disk is of poor interest (it needs a lot of place), saving each partition 
  167. individually is better. It is the same thing for logical partition: it is 
  168. better to save each partition than the whole extended partition. Saving 
  169. partition table or MBR could be interesting in case one day a virus infects 
  170. your computer (some of them destroy this data).
  171.   - Fourth window allows choosing what is to save on chosen element. This 
  172. window appears only if you choose a partition, a floppy disk or a DOS device 
  173. for which filesystem is known. Saving all sectors does a copy of each sector 
  174. of partition, but it could be restored only on a partition that is identical 
  175. to saved one. Choosing to save occupied only sectors does a copy of each 
  176. occupied sector of partition, this need less space and allows restoring on a 
  177. different partition than saved one. "Element on itself" choice appears for FAT
  178. partition only: if you have only one partition, this allows saving this 
  179. partition with creating saving file on it (if you do not choose this option, 
  180. you should not created saving file on saved partition).
  181.   - Following window allows giving saving file name. With DOS, names could not
  182. be more than 8 characters long and could be followed by a 3 characters 
  183. extension (example: "fichier00.part" will be cut into "fichier0.par"). 
  184. Filename could contains alphabetical and numerical characters and '$', '%', 
  185. ''', '-', '_', '@', '~', '`', '!', '(', ')', '{', '}', '^', '#' and '&' 
  186. characters. Files created with this program do not need any specific extension
  187. (do not give them an extension used by another program to avoid confusion). 
  188. Filename should be given into "File" line. As default it contains "*.*" which 
  189. means: list all files into current directory. You could give a simple filename
  190. (in this case it will be created into current directory) or a whole pathname 
  191. (example: "D:\DISK_C.PAR"). Others window elements allow changing drive 
  192. ("Drives") or directory ("Directories") or choosing an existing file 
  193. ("Files"). Unless you choose option to save partition on itself into previous 
  194. window, you should not create a saving file on partition you save.
  195.   - Following window asks for the size that you do not want the file override.
  196. This is useful as example if you want to burn files on CD to force it to not 
  197. be bigger than CD. In all cases you could not create a file bigger than 2047 
  198. Mb. If saving need more place, program will ask you name of a second file 
  199. where it will continue to save data.
  200.   - Following window asks if you want to compress data. Bigger the chosen 
  201. value is, bigger the time to save is (restoring will less be influenced by 
  202. it). As a general rule, going over level 5 do not win a lot of space in 
  203. comparison to time spent.
  204.   - From this point, saving phase begins. Upper progression bar shows saving 
  205. progress, as lower bar shows filling of file in comparison to maximum size 
  206. defined. If this file is filled up, another one will be asked to you. List 
  207. under contains errors that were found when saving. You could cancel this 
  208. saving, but in this case, you should not use created files.
  209.   - Once saving is ended, program asks you if you want to create a 
  210. configuration file. This file is a text file that allows doing the same saving
  211. or restoring this partition without program asking you anything. If you answer
  212. yes here, filename to create will be asked. 
  213.     If after exiting program, you move saving file (with burning them on CD by
  214. example), you have to modify the configuration file to put new place of saving
  215. file (example: if you create saving file into D:\DISK_C.PAR, configuration 
  216. file into D:\DISK_C.CFG, your CD reader has the F: letter and you want to burn
  217. both file. Before doing it, you should edit configuration file (with a text 
  218. editor) to change "file=D:\DISK_C.PAR" line into "file=F:\DISK_C.PAR" and that
  219. for all "file=..." lines that are into file).
  220.  
  221.  
  222. 6- Restoring 
  223. ------------
  224.  
  225. If when saving you have created the configuration file and you want to do 
  226. restoring on saved partition, you could enter "savepart -r -f <configuration 
  227. filename>" and restoring will be automatic. Warning: in this case no 
  228. confirmation will be asked you before. 
  229. If you do not create configuration file or prefer to do restoring by hand, 
  230. here are all steps: 
  231.  
  232.   - Begin with choosing "Restore an element" option in first window.
  233.   - The second window asks which is the first saving file: you should enter 
  234. its name into "File" line (or double click on its name into "Files" list) with
  235. changing directory or drive before if needed. You must be sure that this file 
  236. is not on partition you want to restore.
  237.   - Depending on file contents and how your partitions are, program gives you 
  238. list of partitions that match the one into saved file. The one that is 
  239. identical to the saved one is marked with an 'X' into Id. column. Note: 
  240. restoring a partition obviously erases the current contents. If you saved 
  241. partition table and restore it, you will loose content of all partitions on 
  242. disk on which restoring is done as this modify disk organisation.
  243.   - A window asks you to confirm your choice.
  244.   - From this point restoring begins. Upper progress bar shows progress for 
  245. file that is currently read, lower one gives progress for the restored 
  246. partition. If saving was done into several files, program will ask you the 
  247. following one when it reaches end of current one.
  248.   - Once restoring is ended, you should not access to restored partition 
  249. before having booted your computer. This is because informations that DOS has 
  250. into memory are no more coherent with partition content and so using it will 
  251. end with data corruption. After that, if you have saved partition on itself, 
  252. saving file could appear on restored partition, in this case you could remove 
  253. it as it is not valid (I speak about the file that could appear on restored 
  254. partition, not those you use to do this restoring which is always correct).
  255.   - If when restoring, you do not have restored partition on the one that was 
  256. saved (either it is not on the same disk or beginning of partition has moved 
  257. on disk) and you have Windows 2000 and XP, you have to update some definitions
  258. into registry and into a file (BOOTSECT.DOS) used in case you have several 
  259. Windows installations (see chapters 11 and 12 of manual).
  260.   - In some cases, if you restore system partition, it could be no more 
  261. bootable. You should begin with checking with fdisk that it is activated. Then
  262. for FAT partition, you have to restore MBR with "fdisk /mbr", then boot sector
  263. with "sys c:" (from boot floppy disk). For ext2fs partition, you have to 
  264. restore boot loader by using install CD used into rescue mode (method to use 
  265. depend on boot loader). For NTFS partition, you have to use fixboot, fixmbr 
  266. and bootcfg commands by using repair console that could be obtained with 
  267. install CD.
  268.  
  269. ------
  270. All trademarks and registered trademarks are ownership of their respective 
  271. holders. 
  272.